package com.example.democlient.network.serverpackets;

import java.nio.ByteBuffer;

import com.example.democlient.network.ServerConnection;
import com.example.democlient.network.packet.ServerPacket;


public class HEARTBEAT_REQUEST extends ServerPacket
{
	
	final private int playerId;
	
	public HEARTBEAT_REQUEST(int playerId)
	{
		super(0xef);
		this.playerId = playerId;
	}

	@Override
	protected void writeImpl(ServerConnection con, ByteBuffer buf)
	{
		System.out.println("心跳write");
		writeD(buf, playerId);
	}

}
